package org.csmz;

public class example07 {

    public static void main(String[] args){

        int a = 10;
        int b = 20;

        int max = a > b ? a : b;
        int min = a < b ? a : b;
        System.out.println("最大值： " + max);
        System.out.println("最小值： " + min);
    }

}